package com.project.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
*@author qjj
*@create 2022/3/28 22:06
*/
/**
    * 发票表 和 菜单表 的中间表
    */
@Data
@TableName(value = "receipt_menu_relation")
public class ReceiptMenuRelation {
    /**
     * 发票和菜品的中间表
     */
    @TableId(value = "rdr_id", type = IdType.ASSIGN_ID)
    private Long rdrId;

    /**
     * 发票id
     */
    @TableField(value = "receipt_id")
    private String receiptId;

    /**
     * 菜单id
     */
    @TableField(value = "menu_id")
    private Long menuId;

    @TableField(value = "nums")
    private Integer nums;

    public static final String COL_RDR_ID = "rdr_id";

    public static final String COL_RECEIPT_ID = "receipt_id";

    public static final String COL_MENU_ID = "menu_id";

    public static final String COL_NUMS = "nums";
}